package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.model.account.UserAccountDetail;
import com.atguigu.tingshu.vo.account.AccountLockResultVo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface UserAccountService extends IService<UserAccount> {


	BigDecimal getAvailableAmount();

	AccountLockResultVo checkAndLock(AccountLockVo accountLockVo);

	void minus(String orderNo);

	void unlock(String orderNo);

	void updateRechargeStatus(String orderNo);

	IPage<UserAccountDetail> findUserRechargePage(Integer pageNo, Integer pageSize);

	IPage<UserAccountDetail> findUserConsumePage(Integer pageNo, Integer pageSize);
}
